| Conditions | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import Relation from "../Relation"; |
||
| 30 | |||
| 31 | private getValueByParentKey(parentProperty) { |
||
| 32 | const keyIndex = this.model.getIndexByKey(this.foreignKey); |
||
| 33 | return globalThis.Store.database().find(this.model.className, |
||
| 34 | [...keyIndex.get(`${this.$parent[parentProperty]}`)?.values() ?? []] |
||
| 35 | ).first(); |
||
| 36 | } |
||
| 37 | } |